<!DOCTYPE html>
<html>
	<head> 
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/lib/bootstrap.min.css"/>
		<link rel="stylesheet" href="js/themes/default/easyui.css"/>
		<script src="js/lib/jquery-1.11.0.js"></script>
		<script src="js/lib/bootstrap.min.js"></script>	
		<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<style>
		body{
			font-size:12px;
		}
		table,
		th,
		td {
			border: 1px solid #ccc;
			border-collapse: collapse;
			padding: 5px;
			vertical-align: middle !important;
		}		
		table td:nth-child(odd) {
			background-color: #f1f1f1;
			width:160px;
		}
		table td:nth-child(even) {
			width:160px;
		}
		table tr:nth-child(even) {
			background-color:#ffffff;
		}
		input{
			width:280px;
		}
		span{
			width:20px;color:red;display:inline-block;text-align:center;
		}
		#sho{
			width:300px;
			height:50px;
			background:#d9534f;
			opacity:0.8;
			border-radius:8px;
			color:#fff;
			text-align: center;
			font-size:30px;
			position: absolute;
			top:0px;
			left:550px;
			display:none;
		}
		img{
			margin:10px 2px 0;
			width:150px;
			/*height:150px;*/
			border-radius:5px;
			box-shadow:2px 3px 5px;
			transition:.5s all;			
		}
		img:nth-child(1){
			margin-left:200px;
		}
		img:hover{
			transform:scale(6);
		}
	</style>
	<body>		
	<!--图片审核-->
		<div class="">
			<div id="sho"></div>
		<div style="padding:15px 5px 0px 5px;border:1px solid #ccc;margin-bottom:15px;width:60%;margin:0 auto;">
		<form method="post" enctype="multipart/form-data" >	
			<table class="table table-hover">				
				<tbody>
						<th colspan="8">广告投放:</th>
					</tr>
					<tr style="display:none">
						<td>标题:</td>
						<td colspan="8">
							<input id="p1" name="title" value="" class="form-control" type="text" style="width:280px"/>
						</td>								
					</tr>
					<tr>
						<td>广告链接:</td>
						<td colspan="8">
							<input id="p2" name="url" class="form-control" type="text" placeholder="例如：www.baidu.com" style="width:280px"/>
						</td>								
					</tr>
					<tr>
						<td>图片id:</td>
						<td colspan="8">
							<input id="p4" name="id" class="form-control" placeholder="例如：1" type="text" style="width:280px"/>
						</td>								
					</tr>
					<tr>
						<td>图片上传:</td>
						<td colspan="8">
							<input id="p3" name="image" class="form-control" type="file" style="width:280px"/>
						</td>								
					</tr>	
					<tr>
						<td colspan="8">
							<input class="btn btn-danger" type="submit"  id="submit" value="广告上传"/>
						</td>								
					</tr>
					
				</tbody>
			</table>
			</form>
		</div>
		<div style="height:500px;"></div>
		</div>
	</body>
	<script>
		$(function(){
			var token = sessionStorage.getItem(key = 1);
			var api = window.baseUrl+"user/app/slideshow/add/"+token;
			console.log(api);
			$('form').attr('action',api);
			/*$('#btn').click(function(){
				var p1 = $('#p1').val();
				var p2 = $('#p2').val();
				var p3 = $('#p3').val();
				console.log(p3);
				if(p1!=""){
					$.ajax({
						type:"POST",
						url:"api",
						async:true,
	        			data:{
	        				title:p1,
	        				url:url,
	        				image:img
	        			},
	        			dataType:"json",
	        			success:function(data){
	        				console.log(data)
	        				$('#m1').attr('src',data.result[0])
	        				$('#m2').attr('src',data.result[1])
	        				$('#m3').attr('src',data.result[2])
	        				$('#pp').val(data.infouser.bankName);
	        				$('#p3').val(data.infouser.cardNo);
	        			},
	        			error:function(data){
	        				alert('没有图像数据，请先在手机上完善实名信息！')
	        				console.log("调用失败！")
	        				console.log(data)
	        			}
				});
				}else{
					alert('请输入查询手机号码！')
				}
			})*/
				
		/*	var bd = sessionStorage.getItem(key = 3);
				$.ajax({
					type:"POST",
					url:window.baseUrl+"user/app/slideshow/query/brandid",
					async:true,
        			data:{
        				brand_id:bd
        			},
        			dataType:"json",
        			success:function(data){
        				console.log(data)
        			},
        			error:function(data){
        				
        				console.log(data)	
        			}
				})*/
			})
			
		
	</script>
</html>




